import java.util.Scanner;

public class Exer3_8_7 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int i=1;
        double sum=0;
        while(i<=10){
            System.out.println("请输入第"+i+"个数:");
            double num= input.nextDouble();
            sum+=num;
            i++;
        }
        System.out.println("这十个数的和为："+sum);
    }
}
